package ai.peanut.selfbase.modules.sys.dao;


import ai.peanut.selfbase.modules.sys.entity.UserRole;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户-角色 Mapper 接口
 * </p>
 *
 * @author lichong
 * @since 2019-02-19
 */
public interface UserRoleMapper extends BaseMapper<UserRole> {
    /**
     * 根据用户id删除
     * @param userId
     * @return
     */
    int deleteByUserId(@Param("userId")Long userId);
}
